package com.yungu.swift.common;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.common.service.CommonSensitiveWordService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author : cuixiuyin
 * @date : 2019/4/16
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class Sensitiveword {

    @Autowired
    private CommonSensitiveWordService commonSensitiveWordService;

    @Test
    public void test() {
        String source = "你是猪";
        ResponseData ajaxList = commonSensitiveWordService.checkContainSensitiveWords(source, 2);
        if (ajaxList.isSuccess()) {

        }
    }

}
